//
// Created by haoly on 2025/5/23.
//

#ifndef ITEM_H
#define ITEM_H
typedef struct Item* Item;

//来自练习题17.44
typedef struct node* Vertex;

typedef int Key; // 第12.5节使用char，其余节用int
typedef Vertex Value; // int

#define key(A) ((A)->key)
#define value(A) ((A)->value)
#define less(A, B) ((A) < (B))
#define eq(A, B) ((A) == (B))
#define exch(A, B) { Item t = A; A = B; B = t; }
#define NULLitem NULL
#define maxKey 10
#define null(A) (st[A] == NULLitem)

struct Item {
    Key key;
    Value value;
};
#endif //ITEM_H
